package com.halflife.comeElectricity.user;

import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository {
    int deleteByPrimaryKey(Integer id);

    int insert(User user);

    int insertSelective(User user);

    User selectByPrimaryKey(Integer id);

    /**
     * 通过用户名查找用户 Add by liuj
     * @param name
     * @return
     */
    List<User> selectByUserName(String name);

    List<User> selectAll();

    int updateByPrimaryKeySelective(User user);

    int updateByPrimaryKey(User user);
}